﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace dbPoll_Application.Models
{
    public class CountdownTimer : QuestionObject
    {
        [Range(1, 1000, ErrorMessage = "The countdown amount must be between 1 and 1000.")]
        public virtual int countdownAmount { get; set; }

        public CountdownTimer()
        {
            this.objectID = -1;
            this.active = false;
            this.countdownAmount = 30;
        }

        public CountdownTimer(Boolean active, int countdownAmount)
        {
            this.objectID = -1;
            this.active = active;
            this.countdownAmount = countdownAmount;
        }

        public CountdownTimer(CountdownTimer countdownTimer)
        {
            this.objectID = -1;
            this.active = countdownTimer.active;
            this.countdownAmount = countdownTimer.countdownAmount;
        }

        public CountdownTimer(int objectID, Boolean active, int countdownAmount)
        {
            this.objectID = objectID;
            this.active = active;
            this.countdownAmount = countdownAmount;
        }
    }
}
